package com.yanqu.road.server.manager.activity.suitang.task.impl;

import com.yanqu.road.entity.activity.suitang.enums.eSuiTangStage;
import com.yanqu.road.entity.activity.suitang.enums.eSuiTangTaskType;
import com.yanqu.road.logic.helper.ActivityHelper;
import com.yanqu.road.server.manager.activity.ActivityMgr;
import com.yanqu.road.server.manager.activity.daomu.DaoMuActivity;
import com.yanqu.road.server.manager.activity.daomu.DaoMuActivityMgr;
import com.yanqu.road.server.manager.activity.daomu.pvp.DaoMuActivityPvp;
import com.yanqu.road.server.manager.activity.suitang.CrossSuiTangMgr;
import com.yanqu.road.server.manager.activity.suitang.activity.CrossSuiTangActivity;
import com.yanqu.road.server.manager.activity.suitang.task.BaseCrossSuiTangTask;
import com.yanqu.road.utils.executor.GeneralTask;

import java.util.Map;

/**
 * 复活定时任务
 */
public class CrossSuiTangMainTask extends GeneralTask {

    private CrossSuiTangActivity activity;

    public CrossSuiTangMainTask(CrossSuiTangActivity activity) {
        this.activity = activity;
    }

    @Override
    public void doRun() {
        if (!ActivityMgr.activityInShowTime(activity.getConfig().getActivityInfo())) {
            this.cancel(false);
            return;
        }
        activity.onRun();
    }
}
